package com.aaa.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * (TBook)实体类
 *
 * @author makejava
 * @since 2023-06-02 16:07:46
 */
@Component
public class TBook implements Serializable {
    private static final long serialVersionUID = -43941414067835246L;
    /**
     * 主键
     */
    private Integer bookId;
    /**
     * 图书名称
     */
    private String bookName;
    /**
     * 价格
     */
    private Integer price;
    /**
     * 库存（无符号）
     */
    private String stock;


    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }


    @Override
    public String toString() {
        return "TBook{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", price=" + price +
                ", stock='" + stock + '\'' +
                '}';
    }
}

